package Runnable.project;
//1.创建一个Runnable接口的实现类
public class MyRunnabke implements Runnable{

    //2.实现类中重写Runnable接口中的run（）方法，设置线程任务
    @Override
    public void run() {
        for (int i = 0; i < 50; i++) {
            System.out.println("多线程----》" + i);

        }
    }
}

